package com.dfbz.service;

import com.dfbz.model.Article;
import com.dfbz.model.Favorite;
import com.dfbz.pojo.PageEntity;

import java.util.ArrayList;
import java.util.List;

public interface ArticleService {
    Article findById(Integer id);
    ArrayList<Article> findList();
    void save(Article article);
    void deleteById(Integer id);
    void update(Article article);
    PageEntity<Article> findPage(Integer id,Integer currPage,String articleTitle);
    PageEntity<Article> findCollectPage(Integer id,Integer currPage,String articleTitle);
    Integer countById(Integer id);
    Integer IsfavArticle(Integer uId,Integer aId);
    ArrayList<Favorite> favArticleById(Integer aId, Integer uId);
}
